package routers

import (
	"giv-vue-blog/api"
	"giv-vue-blog/middleware"
)

func (router RouterGroup) MessageRouter() {
	msgApi := api.ApiGroupApp.MessageApi
	router.POST("msg", middleware.JwtAuth(), msgApi.MessageCreateView)
	router.GET("msg_all", middleware.JwtAdmin(), msgApi.MessageListView)
	router.GET("msg", middleware.JwtAuth(), msgApi.MessageListIDView)
	router.GET("msg_record", middleware.JwtAuth(), msgApi.MessageRecord)
}
